home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
DEMON
/
RISCOS2
/
TCP_131S.ARC
/
h
/
resuser
< prev
next >
Wrap
Text File
|
1993-12-18
|
735b
|
25 lines
/*
* Structures returned by network data base library. All addresses are
* supplied in host order, and returned in network order (suitable for
* use in system calls).
*/
struct mx_data {
int preference;
char *host;
};
struct hostent {
char *h_name; /* official name of host */
char **h_aliases; /* alias list */
int h_addrtype; /* host address type */
int h_length; /* length of address */
char **h_addr_list; /* list of addresses from name server */
struct mx_data **h_mx; /* list of mail exchange hosts */
#define h_addr h_addr_list[0] /* address, for backward compatiblity */
};
extern struct hostent *gethostbyname( char *, int );
extern int mxresolve( char * );